/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.yunshanxz.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 云山学者情况Entity
 * @author hang
 * @version 2017-01-15
 */
public class TbYunshanXz extends DataEntity<TbYunshanXz> {
	
	private static final long serialVersionUID = 1L;
	private String danwei;		// 单位
	private String xueke;		// 学科
	private String leibie;		// 类别
	private String name;		// 姓名
	private String sex;		// 性别
	private Date birthday;		// 生日
	private String zhicheng;		// 职称
	private String xuewei;		// 学位
	private String college;		// 大学
	private String major;		// 专业
	private String yuandanwei;		// 原单位
	private String pingqi;		// 聘期
	private String yinyu;		// 引育
	
	public TbYunshanXz() {
		super();
	}

	public TbYunshanXz(String id){
		super(id);
	}

	@Length(min=0, max=200, message="单位长度必须介于 0 和 200 之间")
	public String getDanwei() {
		return danwei;
	}

	public void setDanwei(String danwei) {
		this.danwei = danwei;
	}
	
	@Length(min=0, max=200, message="学科长度必须介于 0 和 200 之间")
	public String getXueke() {
		return xueke;
	}

	public void setXueke(String xueke) {
		this.xueke = xueke;
	}
	
	@Length(min=0, max=200, message="类别长度必须介于 0 和 200 之间")
	public String getLeibie() {
		return leibie;
	}

	public void setLeibie(String leibie) {
		this.leibie = leibie;
	}
	
	@Length(min=0, max=20, message="姓名长度必须介于 0 和 20 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=10, message="性别长度必须介于 0 和 10 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
	@Length(min=0, max=50, message="职称长度必须介于 0 和 50 之间")
	public String getZhicheng() {
		return zhicheng;
	}

	public void setZhicheng(String zhicheng) {
		this.zhicheng = zhicheng;
	}
	
	@Length(min=0, max=50, message="学位长度必须介于 0 和 50 之间")
	public String getXuewei() {
		return xuewei;
	}

	public void setXuewei(String xuewei) {
		this.xuewei = xuewei;
	}
	
	@Length(min=0, max=100, message="大学长度必须介于 0 和 100 之间")
	public String getCollege() {
		return college;
	}

	public void setCollege(String college) {
		this.college = college;
	}
	
	@Length(min=0, max=100, message="专业长度必须介于 0 和 100 之间")
	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}
	
	@Length(min=0, max=100, message="原单位长度必须介于 0 和 100 之间")
	public String getYuandanwei() {
		return yuandanwei;
	}

	public void setYuandanwei(String yuandanwei) {
		this.yuandanwei = yuandanwei;
	}
	
	@Length(min=0, max=100, message="聘期长度必须介于 0 和 100 之间")
	public String getPingqi() {
		return pingqi;
	}

	public void setPingqi(String pingqi) {
		this.pingqi = pingqi;
	}
	
	@Length(min=0, max=20, message="引育长度必须介于 0 和 20 之间")
	public String getYinyu() {
		return yinyu;
	}

	public void setYinyu(String yinyu) {
		this.yinyu = yinyu;
	}
	
}